negotiator.boaframework.opponentmodel
Class BayesianModel

java.lang.Object
  extended by negotiator.boaframework.OpponentModel
      extended by negotiator.boaframework.opponentmodel.BayesianModel

public class BayesianModel
extends OpponentModel

Adapter for BayesianModel. Note that this model only works on small domains. Adapted by Mark Hendrikx to be compatible with the BOA framework. Tim Baarslag, Koen Hindriks, Mark Hendrikx, Alex Dirkzwager and Catholijn M. Jonker. Decoupling Negotiating Agents to Explore the Space of Negotiation Strategies

Author:
Mark Hendrikx

Field Summary
 
Fields inherited from class negotiator.boaframework.OpponentModel
negotiationSession, opponentUtilitySpace
 
Constructor Summary
BayesianModel()
           
 
Method Summary
 void cleanUp()
          Removes references to the objects used by the opponent model.
 double getBidEvaluation(Bid bid)
          Determines the utility of a bid according to the preference profile.
 java.lang.String getName()
           
 UtilitySpace getOpponentUtilitySpace()
           
 double getWeight(Issue issue)
          Returns the weight of a particular issue in the domain.
 void init(NegotiationSession negotiationSession, java.util.HashMap<java.lang.String,java.lang.Double> parameters)
          Initializes the opponent model.
 void updateModel(Bid opponentBid, double time)
          Update the opponent model by updating all hypotheses about the opponent's preference profile.
 
Methods inherited from class negotiator.boaframework.OpponentModel
endSession, getIssueWeights, init, isCleared, loadData, setOpponentUtilitySpace, setOpponentUtilitySpace, storeData, updateModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BayesianModel

public BayesianModel()
Method Detail

init

public void init(NegotiationSession negotiationSession,
                 java.util.HashMap<java.lang.String,java.lang.Double> parameters)
          throws java.lang.Exception
Initializes the opponent model. If the parameter m is set to a value greater than zero, only the best hypothesis about the opponent's utility space is used.

Overrides:
init in class OpponentModel
Parameters:
negotiationSession - reference to the state of the negotiation
Throws:
java.lang.Exception

updateModel

public void updateModel(Bid opponentBid,
                        double time)
Update the opponent model by updating all hypotheses about the opponent's preference profile.

Specified by:
updateModel in class OpponentModel
Parameters:
opponentBid -
time - of offering

getBidEvaluation

public double getBidEvaluation(Bid bid)
Description copied from class: OpponentModel
Determines the utility of a bid according to the preference profile.

Overrides:
getBidEvaluation in class OpponentModel
Parameters:
bid - of which the utility is calculated.
Returns:
Utility of the bid

getWeight

public double getWeight(Issue issue)
Description copied from class: OpponentModel
Returns the weight of a particular issue in the domain.

Overrides:
getWeight in class OpponentModel
Parameters:
issue - from which the weight should be returned
Returns:
estimated issue weight of the given issue.

getOpponentUtilitySpace

public UtilitySpace getOpponentUtilitySpace()
Overrides:
getOpponentUtilitySpace in class OpponentModel
Returns:
utilityspace created by using the opponent model adapter.

cleanUp

public void cleanUp()
Description copied from class: OpponentModel
Removes references to the objects used by the opponent model.

Overrides:
cleanUp in class OpponentModel

getName

public java.lang.String getName()
Overrides:
getName in class OpponentModel
Returns:
name of the opponent model.